package leetcode;

/**
 * @Description
 * @Author away
 * @Version V1.0.0
 * @Since 1.0
 * @Date 21.8.17
 */

public class T551 {
    public static void main(String[] args) {

    }

    public boolean checkRecord(String s) {
        if(s.contains("LLL")||charNum(s)>1){
            return false;
        }
        return true;
    }

    public int charNum(String s){
        return s.length() - s.replace("A", "").length();
    }
}
